<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>type属性</title>
</head>
<body>
    <form action="#" method="get" autocomplete="off">
        <labal for="username">用户名：</labal>
        <input type="text" id="username" name="username" required/><br/>

        <labal for="password">密码：</labal>
        <input type="text" id="password" name="password" required/><br/>

        <labal for="email">邮箱：</labal>
        <input type="email" id="email" name="email" required/><br/>

        <labal for="gender">性别：</labal>
        <input type="radio" id="gender" name="gender" value="men" checked/>男
        <input type="radio" name="gender" value="women"/>女
        <input type="radio" name="gender" value="other"/>其他<br/>

        <labal for="hobby">爱好：</labal>
        <input type="checkbox" id="hobby" name="hobby" value="music"/>音乐
        <input type="checkbox" name="hobby" value="game"/>游戏<br/>

        /* date 日期框 */
        <labal for="birthday">生日：</labal>
        <input type="date" id="birthday" name="birthday"/><br/>

        /* time 时间框 */
        <labal for="time">当前时间：</labal>
        <input type="time" id="time" name="time"/><br/>

        /* datetime-local 时间日期框 */
        <labal for="insert">注册时间：</labal>
        <input type="datetime-local" id="insert" name="insert"/><br/>

        /* number 数字框 */
        <labal for="age">年龄：</labal>
        <input type="number" id="age" name="age"/><br/>

        /* range 滚动条数字框 */
        <labal for="range">心情值（1~10）：</labal>
        <input type="range" id="range" name="range" min="1" max="10" step="1"/><br/>

        /* search 可清楚文本框(文本框末尾带x的，可点击清除文本) */
        <labal for="search">可全部清除文本：</labal>
        <input type="search" id="search" name="search"/><br/>

        /* tel 电话框 */
        <labal for="tel">电话：</labal>
        <input type="tel" id="tel" name="tel"/><br/>

        /* url 网址框 */
        <labal for="url">个人网站：</labal>
        <input type="url" id="url" name="url"/><br/>

        /* file 文件上传框 */
        <labal for="file">文件上传：</labal>
        <input type="file" id="file" name="file"/><br/>

        /* hidden 隐藏框 */
        <labal for="hidden">隐藏信息：</labal>
        <input type="hidden" id="hidden" name="hidden" value="itheima"/><br/>

        <button type="submit">提交</button>
        <button type="reset">重置</button>
    </form>
</body>
</html>